package com.bdqn.t330.ch12file;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.junit.Test;

public class Md5Tester {

    @Test
    public void testMd5Hash() {
        String password = "123456";
        //盐
        String salt = "czkt";
        Md5Hash md5Hash = new Md5Hash(password,salt,2);
        System.out.println(md5Hash.toString());
        //输出：36aa3e095a86925b7658b5d00557fa77
        //MD5加密是不可逆，不能破解
    }
}
